<?php

/**
 * CelebrioWeather WeatherForecast
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    CelebrioWeather
 */

namespace ApplicationsModule\WeatherModule;

use Celebrio\YahooAPI\YahooWeather;
use Celebrio\WeatherApi\WorldWeatherOnline\WorldWeatherOnline;
use Nette\Object;

class WeatherModel extends Object {
    
    private $place;
    
    public function __construct($place) {
	$this->place = $place;
    }
    //TODO: This model should be serving caching.
    public function getForecastClient($latitude = null, $longitude = null, $place = null) {
            return new WorldWeatherOnline($latitude, $longitude, $place);
    }
    
}